package com.linsir.model;

import com.linsir.common.base.BaseModel;

import java.util.List;

/**
 * @author Administrator
 * @title: Role
 * @projectName linsir-mu
 * @description: 用户角色
 * @date 2021/12/2 10:30
 */
public class Role extends BaseModel<Role> {
    private static final long serialVersionUID = -1794335434198017392L;

    public static final Role dao = new Role();

    /**
     * 获取下级角色
     * @param lv
     * @return
     */
    public List<Role> findSubRole(int lv){
        return this.find("select * from eova_role where lv > ?", lv);
    }
}
